home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-10-28 | 7.4 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 72 6d 73 40 6d 6f 6c |piled by| rms@mol|
|00000020| 65 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |e.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 54 75 65 20 | 46 65 62 20 32 37 20 32 | on Tue |Feb 27 2|
|00000040| 33 3a 34 36 3a 35 38 20 | 31 39 39 36 0a 3b 3b 3b |3:46:58 |1996.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 68 6f 6d 65 | from fi|le /home|
|00000060| 2f 66 73 66 2f 72 6d 73 | 2f 65 31 39 2f 6c 69 73 |/fsf/rms|/e19/lis|
|00000070| 70 2f 6c 65 76 65 6e 74 | 73 2e 65 6c 0a 3b 3b 3b |p/levent|s.el.;;;|
|00000080| 20 65 6d 61 63 73 20 76 | 65 72 73 69 6f 6e 20 31 | emacs v|ersion 1|
|00000090| 39 2e 33 30 2e 39 32 2e | 31 2e 0a 3b 3b 3b 20 62 |9.30.92.|1..;;; b|
|000000a0| 79 74 65 63 6f 6d 70 20 | 76 65 72 73 69 6f 6e 20 |ytecomp |version |
|000000b0| 46 53 46 20 32 2e 31 30 | 0a 3b 3b 3b 20 6f 70 74 |FSF 2.10|.;;; opt|
|000000c0| 69 6d 69 7a 61 74 69 6f | 6e 20 69 73 20 6f 6e 2e |imizatio|n is on.|
|000000d0| 0a 3b 3b 3b 20 74 68 69 | 73 20 66 69 6c 65 20 75 |.;;; thi|s file u|
|000000e0| 73 65 73 20 6f 70 63 6f | 64 65 73 20 77 68 69 63 |ses opco|des whic|
|000000f0| 68 20 64 6f 20 6e 6f 74 | 20 65 78 69 73 74 20 69 |h do not| exist i|
|00000100| 6e 20 45 6d 61 63 73 20 | 31 38 2e 0a 0a 28 69 66 |n Emacs |18...(if|
|00000110| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000120| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 29 0a 09 20 |macs-ver|sion).. |
|00000130| 28 6f 72 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(or (and| (boundp|
|00000140| 20 27 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e | 'epoch:|:version|
|00000150| 29 20 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e |) epoch:|:version|
|00000160| 29 0a 09 20 20 20 20 20 | 28 73 74 72 69 6e 67 2d |).. |(string-|
|00000170| 6c 65 73 73 70 20 65 6d | 61 63 73 2d 76 65 72 73 |lessp em|acs-vers|
|00000180| 69 6f 6e 20 22 31 39 2e | 32 39 22 29 29 29 0a 20 |ion "19.|29"))). |
|00000190| 20 20 20 28 65 72 72 6f | 72 20 22 60 6c 65 76 65 | (erro|r "`leve|
|000001a0| 6e 74 73 2e 65 6c 27 20 | 77 61 73 20 63 6f 6d 70 |nts.el' |was comp|
|000001b0| 69 6c 65 64 20 66 6f 72 | 20 45 6d 61 63 73 20 31 |iled for| Emacs 1|
|000001c0| 39 2e 32 39 20 6f 72 20 | 6c 61 74 65 72 22 29 29 |9.29 or |later"))|
|000001d0| 0a 0a 0a 28 64 65 66 61 | 6c 69 61 73 20 27 6e 65 |...(defa|lias 'ne|
|000001e0| 78 74 2d 63 6f 6d 6d 61 | 6e 64 2d 65 76 65 6e 74 |xt-comma|nd-event|
|000001f0| 20 23 5b 28 65 76 65 6e | 74 29 20 22 c0 c1 21 87 | #[(even|t) "..!.|
|00000200| 22 20 5b 65 72 72 6f 72 | 20 22 59 6f 75 20 6d 75 |" [error| "You mu|
|00000210| 73 74 20 72 65 77 72 69 | 74 65 20 74 6f 20 75 73 |st rewri|te to us|
|00000220| 65 20 60 72 65 61 64 2d | 63 6f 6d 6d 61 6e 64 2d |e `read-|command-|
|00000230| 65 76 65 6e 74 27 20 69 | 6e 73 74 65 61 64 20 6f |event' i|nstead o|
|00000240| 66 20 60 6e 65 78 74 2d | 63 6f 6d 6d 61 6e 64 2d |f `next-|command-|
|00000250| 65 76 65 6e 74 27 22 5d | 20 32 5d 29 0a 28 64 65 |event'"]| 2]).(de|
|00000260| 66 61 6c 69 61 73 20 27 | 6e 65 78 74 2d 65 76 65 |falias '|next-eve|
|00000270| 6e 74 20 23 5b 28 65 76 | 65 6e 74 29 20 22 c0 c1 |nt #[(ev|ent) "..|
|00000280| 21 87 22 20 5b 65 72 72 | 6f 72 20 22 59 6f 75 20 |!." [err|or "You |
|00000290| 6d 75 73 74 20 72 65 77 | 72 69 74 65 20 74 6f 20 |must rew|rite to |
|000002a0| 75 73 65 20 60 72 65 61 | 64 2d 65 76 65 6e 74 27 |use `rea|d-event'|
|000002b0| 20 69 6e 73 74 65 61 64 | 20 6f 66 20 60 6e 65 78 | instead| of `nex|
|000002c0| 74 2d 65 76 65 6e 74 27 | 22 5d 20 32 5d 29 0a 28 |t-event'|"] 2]).(|
|000002d0| 64 65 66 61 6c 69 61 73 | 20 27 64 69 73 70 61 74 |defalias| 'dispat|
|000002e0| 63 68 2d 65 76 65 6e 74 | 20 23 5b 28 65 76 65 6e |ch-event| #[(even|
|000002f0| 74 29 20 22 c0 c1 21 87 | 22 20 5b 65 72 72 6f 72 |t) "..!.|" [error|
|00000300| 20 22 60 64 69 73 70 61 | 74 63 68 2d 65 76 65 6e | "`dispa|tch-even|
|00000310| 74 27 20 6e 6f 74 20 73 | 75 70 70 6f 72 74 65 64 |t' not s|upported|
|00000320| 22 5d 20 32 5d 29 0a 28 | 62 79 74 65 2d 63 6f 64 |"] 2]).(|byte-cod|
|00000330| 65 20 22 c0 09 c2 c3 23 | 88 c0 09 c4 c3 23 88 c0 |e "....#|.....#..|
|00000340| 09 c5 c3 23 87 22 20 5b | 64 65 66 69 6e 65 2d 6b |...#." [|define-k|
|00000350| 65 79 20 67 6c 6f 62 61 | 6c 2d 6d 61 70 20 5b 6d |ey globa|l-map [m|
|00000360| 65 6e 75 5d 20 65 78 65 | 63 75 74 65 2d 65 76 61 |enu] exe|cute-eva|
|00000370| 6c 2d 65 76 65 6e 74 20 | 5b 74 69 6d 65 6f 75 74 |l-event |[timeout|
|00000380| 5d 20 5b 65 76 61 6c 5d | 5d 20 34 29 0a 28 64 65 |] [eval]|] 4).(de|
|00000390| 66 61 6c 69 61 73 20 27 | 65 78 65 63 75 74 65 2d |falias '|execute-|
|000003a0| 65 76 61 6c 2d 65 76 65 | 6e 74 20 23 5b 28 65 76 |eval-eve|nt #[(ev|
|000003b0| 65 6e 74 29 20 22 08 41 | 40 c1 08 38 21 87 22 20 |ent) ".A|@..8!." |
|000003c0| 5b 65 76 65 6e 74 20 32 | 5d 20 33 20 6e 69 6c 20 |[event 2|] 3 nil |
|000003d0| 22 65 22 5d 29 0a 28 62 | 79 74 65 2d 63 6f 64 65 |"e"]).(b|yte-code|
|000003e0| 20 22 c0 c1 c2 c3 23 88 | c0 c4 c2 c5 23 88 c0 c6 | "....#.|....#...|
|000003f0| c2 c7 23 87 22 20 5b 70 | 75 74 20 65 76 61 6c 20 |..#." [p|ut eval |
|00000400| 65 76 65 6e 74 2d 73 79 | 6d 62 6f 6c 2d 65 6c 65 |event-sy|mbol-ele|
|00000410| 6d 65 6e 74 73 20 28 65 | 76 61 6c 29 20 6d 65 6e |ments (e|val) men|
|00000420| 75 20 28 65 76 61 6c 29 | 20 74 69 6d 65 6f 75 74 |u (eval)| timeout|
|00000430| 20 28 65 76 61 6c 29 5d | 20 34 29 0a 23 40 37 30 | (eval)]| 4).#@70|
|00000440| 20 52 65 74 75 72 6e 73 | 20 61 6e 20 65 6d 70 74 | Returns| an empt|
|00000450| 79 20 65 76 65 6e 74 20 | 73 74 72 75 63 74 75 72 |y event |structur|
|00000460| 65 2e 0a 49 6e 20 74 68 | 69 73 20 65 6d 75 6c 61 |e..In th|is emula|
|00000470| 74 69 6f 6e 2c 20 69 74 | 20 72 65 74 75 72 6e 73 |tion, it| returns|
|00000480| 20 6e 69 6c 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 | nil...(|defalias|
|00000490| 20 27 61 6c 6c 6f 63 61 | 74 65 2d 65 76 65 6e 74 | 'alloca|te-event|
|000004a0| 20 23 5b 6e 69 6c 20 22 | c0 87 22 20 5b 6e 69 6c | #[nil "|.." [nil|
|000004b0| 5d 20 31 20 28 23 24 20 | 2e 20 31 30 38 39 29 5d |] 1 (#$ |. 1089)]|
|000004c0| 29 0a 23 40 36 30 20 54 | 72 75 65 20 69 66 20 74 |).#@60 T|rue if t|
|000004d0| 68 65 20 61 72 67 75 6d | 65 6e 74 20 69 73 20 61 |he argum|ent is a|
|000004e0| 20 6d 6f 75 73 65 2d 62 | 75 74 74 6f 6e 2d 70 72 | mouse-b|utton-pr|
|000004f0| 65 73 73 20 65 76 65 6e | 74 20 6f 62 6a 65 63 74 |ess even|t object|
|00000500| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 62 75 |...(defa|lias 'bu|
|00000510| 74 74 6f 6e 2d 70 72 65 | 73 73 2d 65 76 65 6e 74 |tton-pre|ss-event|
|00000520| 2d 70 20 23 5b 28 6f 62 | 6a 29 20 22 08 3a 85 11 |-p #[(ob|j) ".:..|
|00000530| 00 08 40 39 85 11 00 c1 | 08 40 c2 4e 3e 87 22 20 |..@9....|.@.N>." |
|00000540| 5b 6f 62 6a 20 64 6f 77 | 6e 20 65 76 65 6e 74 2d |[obj dow|n event-|
|00000550| 73 79 6d 62 6f 6c 2d 65 | 6c 65 6d 65 6e 74 73 5d |symbol-e|lements]|
|00000560| 20 33 20 28 23 24 20 2e | 20 31 32 32 33 29 5d 29 | 3 (#$ .| 1223)])|
|00000570| 0a 23 40 36 32 20 54 72 | 75 65 20 69 66 20 74 68 |.#@62 Tr|ue if th|
|00000580| 65 20 61 72 67 75 6d 65 | 6e 74 20 69 73 20 61 20 |e argume|nt is a |
|00000590| 6d 6f 75 73 65 2d 62 75 | 74 74 6f 6e 2d 72 65 6c |mouse-bu|tton-rel|
|000005a0| 65 61 73 65 20 65 76 65 | 6e 74 20 6f 62 6a 65 63 |ease eve|nt objec|
|000005b0| 74 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 62 |t...(def|alias 'b|
|000005c0| 75 74 74 6f 6e 2d 72 65 | 6c 65 61 73 65 2d 65 76 |utton-re|lease-ev|
|000005d0| 65 6e 74 2d 70 20 23 5b | 28 6f 62 6a 29 20 22 08 |ent-p #[|(obj) ".|
|000005e0| 3a 85 1a 00 08 40 39 85 | 1a 00 c1 08 40 c2 4e 3e |:....@9.|....@.N>|
|000005f0| 86 1a 00 c3 08 40 c2 4e | 3e 87 22 20 5b 6f 62 6a |.....@.N|>." [obj|
|00000600| 20 63 6c 69 63 6b 20 65 | 76 65 6e 74 2d 73 79 6d | click e|vent-sym|
|00000610| 62 6f 6c 2d 65 6c 65 6d | 65 6e 74 73 20 64 72 61 |bol-elem|ents dra|
|00000620| 67 5d 20 33 20 28 23 24 | 20 2e 20 31 33 39 38 29 |g] 3 (#$| . 1398)|
|00000630| 5d 29 0a 23 40 34 39 37 | 20 43 6f 6e 76 65 72 74 |]).#@497| Convert|
|00000640| 73 20 61 20 6e 75 6d 65 | 72 69 63 20 41 53 43 49 |s a nume|ric ASCI|
|00000650| 49 20 76 61 6c 75 65 20 | 74 6f 20 61 6e 20 65 76 |I value |to an ev|
|00000660| 65 6e 74 20 73 74 72 75 | 63 74 75 72 65 2c 20 72 |ent stru|cture, r|
|00000670| 65 70 6c 65 74 65 20 77 | 69 74 68 0a 62 75 63 6b |eplete w|ith.buck|
|00000680| 79 20 62 69 74 73 2e 20 | 20 54 68 65 20 63 68 61 |y bits. | The cha|
|00000690| 72 61 63 74 65 72 20 69 | 73 20 74 68 65 20 66 69 |racter i|s the fi|
|000006a0| 72 73 74 20 61 72 67 75 | 6d 65 6e 74 2c 20 61 6e |rst argu|ment, an|
|000006b0| 64 20 74 68 65 20 65 76 | 65 6e 74 20 74 6f 20 66 |d the ev|ent to f|
|000006c0| 69 6c 6c 0a 69 6e 20 69 | 73 20 74 68 65 20 73 65 |ill.in i|s the se|
|000006d0| 63 6f 6e 64 2e 20 20 54 | 68 69 73 20 66 75 6e 63 |cond. T|his func|
|000006e0| 74 69 6f 6e 20 63 6f 6e | 74 61 69 6e 73 20 6b 6e |tion con|tains kn|
|000006f0| 6f 77 6c 65 64 67 65 20 | 61 62 6f 75 74 20 77 68 |owledge |about wh|
|00000700| 61 74 20 74 68 65 20 63 | 6f 64 65 73 0a 6d 65 61 |at the c|odes.mea|
|00000710| 6e 20 2d 2d 20 66 6f 72 | 20 65 78 61 6d 70 6c 65 |n -- for| example|
|00000720| 2c 20 74 68 65 20 6e 75 | 6d 62 65 72 20 39 20 69 |, the nu|mber 9 i|
|00000730| 73 20 63 6f 6e 76 65 72 | 74 65 64 20 74 6f 20 74 |s conver|ted to t|
|00000740| 68 65 20 63 68 61 72 61 | 63 74 65 72 20 54 61 62 |he chara|cter Tab|
|00000750| 2c 0a 6e 6f 74 20 74 68 | 65 20 64 69 73 74 69 6e |,.not th|e distin|
|00000760| 63 74 20 63 68 61 72 61 | 63 74 65 72 20 43 6f 6e |ct chara|cter Con|
|00000770| 74 72 6f 6c 2d 49 2e 0a | 0a 42 65 77 61 72 65 20 |trol-I..|.Beware |
|00000780| 74 68 61 74 20 63 68 61 | 72 61 63 74 65 72 2d 74 |that cha|racter-t|
|00000790| 6f 2d 65 76 65 6e 74 20 | 61 6e 64 20 65 76 65 6e |o-event |and even|
|000007a0| 74 2d 74 6f 2d 63 68 61 | 72 61 63 74 65 72 20 61 |t-to-cha|racter a|
|000007b0| 72 65 20 6e 6f 74 20 73 | 74 72 69 63 74 6c 79 20 |re not s|trictly |
|000007c0| 0a 69 6e 76 65 72 73 65 | 20 66 75 6e 63 74 69 6f |.inverse| functio|
|000007d0| 6e 73 2c 20 73 69 6e 63 | 65 20 65 76 65 6e 74 73 |ns, sinc|e events|
|000007e0| 20 63 6f 6e 74 61 69 6e | 20 6d 75 63 68 20 6d 6f | contain| much mo|
|000007f0| 72 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 74 |re infor|mation t|
|00000800| 68 61 6e 20 74 68 65 20 | 0a 41 53 43 49 49 20 63 |han the |.ASCII c|
|00000810| 68 61 72 61 63 74 65 72 | 20 73 65 74 20 63 61 6e |haracter| set can|
|00000820| 20 65 6e 63 6f 64 65 2e | 1f 0a 28 64 65 66 61 6c | encode.|..(defal|
|00000830| 69 61 73 20 27 63 68 61 | 72 61 63 74 65 72 2d 74 |ias 'cha|racter-t|
|00000840| 6f 2d 65 76 65 6e 74 20 | 23 5b 28 63 68 20 26 6f |o-event |#[(ch &o|
|00000850| 70 74 69 6f 6e 61 6c 20 | 65 76 65 6e 74 29 20 22 |ptional |event) "|
|00000860| 08 87 22 20 5b 63 68 5d | 20 31 20 28 23 24 20 2e |.." [ch]| 1 (#$ .|
|00000870| 20 31 35 39 33 29 5d 29 | 0a 23 40 39 39 20 4d 61 | 1593)])|.#@99 Ma|
|00000880| 6b 65 20 61 20 63 6f 70 | 79 20 6f 66 20 74 68 65 |ke a cop|y of the|
|00000890| 20 67 69 76 65 6e 20 65 | 76 65 6e 74 20 6f 62 6a | given e|vent obj|
|000008a0| 65 63 74 2e 0a 49 6e 20 | 74 68 69 73 20 65 6d 75 |ect..In |this emu|
|000008b0| 6c 61 74 69 6f 6e 2c 20 | 60 63 6f 70 79 2d 65 76 |lation, |`copy-ev|
|000008c0| 65 6e 74 27 20 6a 75 73 | 74 20 72 65 74 75 72 6e |ent' jus|t return|
|000008d0| 73 20 69 74 73 20 61 72 | 67 75 6d 65 6e 74 2e 1f |s its ar|gument..|
|000008e0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 63 6f 70 79 |.(defali|as 'copy|
|000008f0| 2d 65 76 65 6e 74 20 23 | 5b 28 65 76 65 6e 74 31 |-event #|[(event1|
|00000900| 20 26 6f 70 74 69 6f 6e | 61 6c 20 65 76 65 6e 74 | &option|al event|
|00000910| 32 29 20 22 08 87 22 20 | 5b 65 76 65 6e 74 31 5d |2) ".." |[event1]|
|00000920| 20 31 20 28 23 24 20 2e | 20 32 31 37 34 29 5d 29 | 1 (#$ .| 2174)])|
|00000930| 0a 23 40 34 37 32 20 41 | 6c 6c 6f 77 20 74 68 65 |.#@472 A|llow the|
|00000940| 20 67 69 76 65 6e 20 65 | 76 65 6e 74 20 73 74 72 | given e|vent str|
|00000950| 75 63 74 75 72 65 20 74 | 6f 20 62 65 20 72 65 75 |ucture t|o be reu|
|00000960| 73 65 64 2e 0a 49 6e 20 | 61 63 74 75 61 6c 20 4c |sed..In |actual L|
|00000970| 75 63 69 64 20 45 6d 61 | 63 73 2c 20 79 6f 75 20 |ucid Ema|cs, you |
|00000980| 4d 55 53 54 20 4e 4f 54 | 20 75 73 65 20 74 68 69 |MUST NOT| use thi|
|00000990| 73 20 65 76 65 6e 74 20 | 6f 62 6a 65 63 74 20 61 |s event |object a|
|000009a0| 66 74 65 72 0a 63 61 6c | 6c 69 6e 67 20 74 68 69 |fter.cal|ling thi|
|000009b0| 73 20 66 75 6e 63 74 69 | 6f 6e 20 77 69 74 68 20 |s functi|on with |
|000009c0| 69 74 2e 20 20 59 6f 75 | 20 77 69 6c 6c 20 6c 6f |it. You| will lo|
|000009d0| 73 65 2e 20 20 49 74 20 | 69 73 20 6e 6f 74 20 6e |se. It |is not n|
|000009e0| 65 63 65 73 73 61 72 79 | 20 74 6f 0a 63 61 6c 6c |ecessary| to.call|
|000009f0| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 2c 20 | this fu|nction, |
|00000a00| 61 73 20 65 76 65 6e 74 | 20 6f 62 6a 65 63 74 73 |as event| objects|
|00000a10| 20 61 72 65 20 67 61 72 | 62 61 67 65 2d 20 63 6f | are gar|bage- co|
|00000a20| 6c 6c 65 63 74 65 64 20 | 6c 69 6b 65 20 61 6c 6c |llected |like all|
|00000a30| 0a 6f 74 68 65 72 20 6f | 62 6a 65 63 74 73 3b 20 |.other o|bjects; |
|00000a40| 68 6f 77 65 76 65 72 2c | 20 69 74 20 6d 61 79 20 |however,| it may |
|00000a50| 62 65 20 6d 6f 72 65 20 | 65 66 66 69 63 69 65 6e |be more |efficien|
|00000a60| 74 20 74 6f 20 65 78 70 | 6c 69 63 69 74 6c 79 0a |t to exp|licitly.|
|00000a70| 64 65 61 6c 6c 6f 63 61 | 74 65 20 65 76 65 6e 74 |dealloca|te event|
|00000a80| 73 20 77 68 65 6e 20 79 | 6f 75 20 61 72 65 20 73 |s when y|ou are s|
|00000a90| 75 72 65 20 74 68 61 74 | 20 74 68 61 74 20 69 73 |ure that| that is|
|00000aa0| 20 73 61 66 65 2e 0a 0a | 54 68 69 73 20 65 6d 75 | safe...|This emu|
|00000ab0| 6c 61 74 69 6f 6e 20 64 | 6f 65 73 20 6e 6f 74 20 |lation d|oes not |
|00000ac0| 61 63 74 75 61 6c 6c 79 | 20 64 65 61 6c 6c 6f 63 |actually| dealloc|
|00000ad0| 61 74 65 20 6f 72 20 72 | 65 75 73 65 20 65 76 65 |ate or r|euse eve|
|00000ae0| 6e 74 73 0a 65 78 63 65 | 70 74 20 76 69 61 20 67 |nts.exce|pt via g|
|00000af0| 61 72 62 61 67 65 20 63 | 6f 6c 6c 65 63 74 69 6f |arbage c|ollectio|
|00000b00| 6e 20 61 6e 64 20 60 63 | 6f 6e 73 27 2e 1f 0a 28 |n and `c|ons'...(|
|00000b10| 64 65 66 61 6c 69 61 73 | 20 27 64 65 61 6c 6c 6f |defalias| 'deallo|
|00000b20| 63 61 74 65 2d 65 76 65 | 6e 74 20 23 5b 28 65 76 |cate-eve|nt #[(ev|
|00000b30| 65 6e 74 29 20 22 c0 87 | 22 20 5b 6e 69 6c 5d 20 |ent) "..|" [nil] |
|00000b40| 31 20 28 23 24 20 2e 20 | 32 33 35 39 29 5d 29 0a |1 (#$ . |2359)]).|
|00000b50| 23 40 31 30 32 20 41 64 | 64 20 61 6e 20 65 76 61 |#@102 Ad|d an eva|
|00000b60| 6c 20 65 76 65 6e 74 20 | 74 6f 20 74 68 65 20 62 |l event |to the b|
|00000b70| 61 63 6b 20 6f 66 20 74 | 68 65 20 71 75 65 75 65 |ack of t|he queue|
|00000b80| 2e 0a 49 74 20 77 69 6c | 6c 20 62 65 20 74 68 65 |..It wil|l be the|
|00000b90| 20 6e 65 78 74 20 65 76 | 65 6e 74 20 72 65 61 64 | next ev|ent read|
|00000ba0| 20 61 66 74 65 72 20 61 | 6c 6c 20 70 65 6e 64 69 | after a|ll pendi|
|00000bb0| 6e 67 20 65 76 65 6e 74 | 73 2e 1f 0a 28 64 65 66 |ng event|s...(def|
|00000bc0| 61 6c 69 61 73 20 27 65 | 6e 71 75 65 75 65 2d 65 |alias 'e|nqueue-e|
|00000bd0| 76 61 6c 2d 65 76 65 6e | 74 3a 20 23 5b 28 66 75 |val-even|t: #[(fu|
|00000be0| 6e 63 74 69 6f 6e 20 6f | 62 6a 65 63 74 29 20 22 |nction o|bject) "|
|00000bf0| 08 c1 5c 6e 0b 45 43 a4 | 89 10 87 22 20 5b 75 6e |..\n.EC.|..." [un|
|00000c00| 72 65 61 64 2d 63 6f 6d | 6d 61 6e 64 2d 65 76 65 |read-com|mand-eve|
|00000c10| 6e 74 73 20 65 76 61 6c | 20 66 75 6e 63 74 69 6f |nts eval| functio|
|00000c20| 6e 20 6f 62 6a 65 63 74 | 5d 20 34 20 28 23 24 20 |n object|] 4 (#$ |
|00000c30| 2e 20 32 39 30 32 29 5d | 29 0a 23 40 35 35 20 54 |. 2902)]|).#@55 T|
|00000c40| 72 75 65 20 69 66 20 74 | 68 65 20 61 72 67 75 6d |rue if t|he argum|
|00000c50| 65 6e 74 20 69 73 20 61 | 6e 20 65 76 61 6c 20 6f |ent is a|n eval o|
|00000c60| 72 20 6d 65 6e 75 20 65 | 76 65 6e 74 20 6f 62 6a |r menu e|vent obj|
|00000c70| 65 63 74 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |ect...(d|efalias |
|00000c80| 27 65 76 61 6c 2d 65 76 | 65 6e 74 2d 70 20 23 5b |'eval-ev|ent-p #[|
|00000c90| 28 6f 62 6a 29 20 22 08 | a2 c1 3d 87 22 20 5b 6f |(obj) ".|..=." [o|
|00000ca0| 62 6a 20 65 76 61 6c 5d | 20 32 20 28 23 24 20 2e |bj eval]| 2 (#$ .|
|00000cb0| 20 33 31 33 35 29 5d 29 | 0a 23 40 36 35 20 52 65 | 3135)])|.#@65 Re|
|00000cc0| 74 75 72 6e 20 74 68 65 | 20 62 75 74 74 6f 6e 2d |turn the| button-|
|00000cd0| 6e 75 6d 62 65 72 20 6f | 66 20 74 68 65 20 67 69 |number o|f the gi|
|00000ce0| 76 65 6e 20 6d 6f 75 73 | 65 2d 62 75 74 74 6f 6e |ven mous|e-button|
|00000cf0| 2d 70 72 65 73 73 20 65 | 76 65 6e 74 2e 1f 0a 28 |-press e|vent...(|
|00000d00| 64 65 66 61 6c 69 61 73 | 20 27 65 76 65 6e 74 2d |defalias| 'event-|
|00000d10| 62 75 74 74 6f 6e 20 23 | 5b 28 65 76 65 6e 74 29 |button #|[(event)|
|00000d20| 20 22 08 40 c1 4e 40 89 | 1a c3 9e 41 29 87 22 20 | ".@.N@.|...A)." |
|00000d30| 5b 65 76 65 6e 74 20 65 | 76 65 6e 74 2d 73 79 6d |[event e|vent-sym|
|00000d40| 62 6f 6c 2d 65 6c 65 6d | 65 6e 74 73 20 73 79 6d |bol-elem|ents sym|
|00000d50| 20 28 28 6d 6f 75 73 65 | 2d 31 20 2e 20 31 29 20 | ((mouse|-1 . 1) |
|00000d60| 28 6d 6f 75 73 65 2d 32 | 20 2e 20 32 29 20 28 6d |(mouse-2| . 2) (m|
|00000d70| 6f 75 73 65 2d 33 20 2e | 20 33 29 20 28 6d 6f 75 |ouse-3 .| 3) (mou|
|00000d80| 73 65 2d 34 20 2e 20 34 | 29 20 28 6d 6f 75 73 65 |se-4 . 4|) (mouse|
|00000d90| 2d 35 20 2e 20 35 29 29 | 5d 20 33 20 28 23 24 20 |-5 . 5))|] 3 (#$ |
|00000da0| 2e 20 33 32 36 32 29 5d | 29 0a 23 40 37 33 20 52 |. 3262)]|).#@73 R|
|00000db0| 65 74 75 72 6e 20 74 68 | 65 20 63 61 6c 6c 62 61 |eturn th|e callba|
|00000dc0| 63 6b 20 66 75 6e 63 74 | 69 6f 6e 20 6f 66 20 74 |ck funct|ion of t|
|00000dd0| 68 65 20 67 69 76 65 6e | 20 74 69 6d 65 6f 75 74 |he given| timeout|
|00000de0| 2c 20 6d 65 6e 75 2c 20 | 6f 72 20 65 76 61 6c 20 |, menu, |or eval |
|00000df0| 65 76 65 6e 74 2e 1f 0a | 28 64 65 66 61 6c 69 61 |event...|(defalia|
|00000e00| 73 20 27 65 76 65 6e 74 | 2d 66 75 6e 63 74 69 6f |s 'event|-functio|
|00000e10| 6e 20 23 5b 28 65 76 65 | 6e 74 29 20 22 08 41 40 |n #[(eve|nt) ".A@|
|00000e20| 87 22 20 5b 65 76 65 6e | 74 5d 20 31 20 28 23 24 |." [even|t] 1 (#$|
|00000e30| 20 2e 20 33 35 30 33 29 | 5d 29 0a 23 40 31 32 31 | . 3503)|]).#@121|
|00000e40| 20 52 65 74 75 72 6e 73 | 20 74 68 65 20 4b 65 79 | Returns| the Key|
|00000e50| 53 79 6d 20 6f 66 20 74 | 68 65 20 67 69 76 65 6e |Sym of t|he given|
|00000e60| 20 6b 65 79 2d 70 72 65 | 73 73 20 65 76 65 6e 74 | key-pre|ss event|
|00000e70| 2e 0a 54 68 65 20 76 61 | 6c 75 65 20 69 73 20 61 |..The va|lue is a|
|00000e80| 6e 20 41 53 43 49 49 20 | 70 72 69 6e 74 69 6e 67 |n ASCII |printing|
|00000e90| 20 63 68 61 72 61 63 74 | 65 72 20 28 6e 6f 74 20 | charact|er (not |
|00000ea0| 75 70 70 65 72 20 63 61 | 73 65 29 20 6f 72 20 61 |upper ca|se) or a|
|00000eb0| 20 73 79 6d 62 6f 6c 2e | 1f 0a 28 64 65 66 61 6c | symbol.|..(defal|
|00000ec0| 69 61 73 20 27 65 76 65 | 6e 74 2d 6b 65 79 20 23 |ias 'eve|nt-key #|
|00000ed0| 5b 28 65 76 65 6e 74 29 | 20 22 08 39 83 5c 6e 00 |[(event)| ".9.\n.|
|00000ee0| 08 c1 4e 40 87 c2 08 c3 | c4 c5 5c 22 53 5c 22 89 |..N@....|..\"S\".|
|00000ef0| 1e 06 c7 57 83 5c 22 00 | c8 0e 06 c9 5c 22 82 24 |...W.\".|....\".$|
|00000f00| 00 0e 06 97 29 87 22 20 | 5b 65 76 65 6e 74 20 65 |....)." |[event e|
|00000f10| 76 65 6e 74 2d 73 79 6d | 62 6f 6c 2d 65 6c 65 6d |vent-sym|bol-elem|
|00000f20| 65 6e 74 73 20 6c 6f 67 | 61 6e 64 20 6c 73 68 20 |ents log|and lsh |
|00000f30| 31 20 31 38 20 62 61 73 | 65 20 33 32 20 6c 6f 67 |1 18 bas|e 32 log|
|00000f40| 69 6f 72 20 36 34 5d 20 | 36 20 28 23 24 20 2e 20 |ior 64] |6 (#$ . |
|00000f50| 33 36 34 39 29 5d 29 0a | 23 40 37 34 20 52 65 74 |3649)]).|#@74 Ret|
|00000f60| 75 72 6e 73 20 74 68 65 | 20 66 75 6e 63 74 69 6f |urns the| functio|
|00000f70| 6e 20 61 72 67 75 6d 65 | 6e 74 20 6f 66 20 74 68 |n argume|nt of th|
|00000f80| 65 20 67 69 76 65 6e 20 | 74 69 6d 65 6f 75 74 2c |e given |timeout,|
|00000f90| 20 6d 65 6e 75 2c 20 6f | 72 20 65 76 61 6c 20 65 | menu, o|r eval e|
|00000fa0| 76 65 6e 74 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |vent...(|defalias|
|00000fb0| 20 27 65 76 65 6e 74 2d | 6f 62 6a 65 63 74 20 23 | 'event-|object #|
|00000fc0| 5b 28 65 76 65 6e 74 29 | 20 22 c0 09 38 87 22 20 |[(event)| "..8." |
|00000fd0| 5b 32 20 65 76 65 6e 74 | 5d 20 32 20 28 23 24 20 |[2 event|] 2 (#$ |
|00000fe0| 2e 20 33 39 33 33 29 5d | 29 0a 23 40 32 33 38 20 |. 3933)]|).#@238 |
|00000ff0| 52 65 74 75 72 6e 73 20 | 74 68 65 20 63 68 61 72 |Returns |the char|
|00001000| 61 63 74 65 72 20 70 6f | 73 69 74 69 6f 6e 20 6f |acter po|sition o|
|00001010| 66 20 74 68 65 20 67 69 | 76 65 6e 20 6d 6f 75 73 |f the gi|ven mous|
|00001020| 65 2d 72 65 6c 61 74 65 | 64 20 65 76 65 6e 74 2e |e-relate|d event.|
|00001030| 0a 49 66 20 74 68 65 20 | 65 76 65 6e 74 20 64 69 |.If the |event di|
|00001040| 64 20 6e 6f 74 20 6f 63 | 63 75 72 20 6f 76 65 72 |d not oc|cur over|
|00001050| 20 61 20 77 69 6e 64 6f | 77 2c 20 6f 72 20 64 69 | a windo|w, or di|
|00001060| 64 0a 6e 6f 74 20 6f 63 | 63 75 72 20 6f 76 65 72 |d.not oc|cur over|
|00001070| 20 74 65 78 74 2c 20 74 | 68 65 6e 20 74 68 69 73 | text, t|hen this|
|00001080| 20 72 65 74 75 72 6e 73 | 20 6e 69 6c 2e 20 20 4f | returns| nil. O|
|00001090| 74 68 65 72 77 69 73 65 | 2c 20 69 74 20 72 65 74 |therwise|, it ret|
|000010a0| 75 72 6e 73 20 61 6e 20 | 69 6e 64 65 78 0a 69 6e |urns an |index.in|
|000010b0| 74 6f 20 74 68 65 20 62 | 75 66 66 65 72 20 76 69 |to the b|uffer vi|
|000010c0| 73 69 62 6c 65 20 69 6e | 20 74 68 65 20 65 76 65 |sible in| the eve|
|000010d0| 6e 74 27 73 20 77 69 6e | 64 6f 77 2e 1f 0a 28 64 |nt's win|dow...(d|
|000010e0| 65 66 61 6c 69 61 73 20 | 27 65 76 65 6e 74 2d 70 |efalias |'event-p|
|000010f0| 6f 69 6e 74 20 23 5b 28 | 65 76 65 6e 74 29 20 22 |oint #[(|event) "|
|00001100| 08 18 c1 08 38 3a 83 0d | 00 c1 82 0e 00 c2 08 38 |....8:..|.......8|
|00001110| 29 89 1b 41 40 3a 83 20 | 00 0b 41 40 40 82 23 00 |)..A@:. |..A@@.#.|
|00001120| 0b 41 40 29 87 22 20 5b | 65 76 65 6e 74 20 32 20 |.A@)." [|event 2 |
|00001130| 31 20 70 6f 73 69 74 69 | 6f 6e 5d 20 33 20 28 23 |1 positi|on] 3 (#|
|00001140| 24 20 2e 20 34 30 38 30 | 29 5d 29 0a 23 40 35 36 |$ . 4080|)]).#@56|
|00001150| 20 52 65 74 75 72 6e 73 | 20 74 68 65 20 70 72 6f | Returns| the pro|
|00001160| 63 65 73 73 20 6f 66 20 | 74 68 65 20 67 69 76 65 |cess of |the give|
|00001170| 6e 20 70 72 6f 63 65 73 | 73 2d 6f 75 74 70 75 74 |n proces|s-output|
|00001180| 20 65 76 65 6e 74 2e 1f | 0a 28 64 65 66 61 6c 69 | event..|.(defali|
|00001190| 61 73 20 27 65 76 65 6e | 74 2d 70 72 6f 63 65 73 |as 'even|t-proces|
|000011a0| 73 20 23 5b 28 65 76 65 | 6e 74 29 20 22 08 41 40 |s #[(eve|nt) ".A@|
|000011b0| 87 22 20 5b 65 76 65 6e | 74 5d 20 31 20 28 23 24 |." [even|t] 1 (#$|
|000011c0| 20 2e 20 34 34 33 33 29 | 5d 29 0a 23 40 31 36 34 | . 4433)|]).#@164|
|000011d0| 20 52 65 74 75 72 6e 73 | 20 74 68 65 20 74 69 6d | Returns| the tim|
|000011e0| 65 73 74 61 6d 70 20 6f | 66 20 74 68 65 20 67 69 |estamp o|f the gi|
|000011f0| 76 65 6e 20 65 76 65 6e | 74 20 6f 62 6a 65 63 74 |ven even|t object|
|00001200| 2e 0a 49 6e 20 4c 75 63 | 69 64 20 45 6d 61 63 73 |..In Luc|id Emacs|
|00001210| 2c 20 74 68 69 73 20 77 | 6f 72 6b 73 20 66 6f 72 |, this w|orks for|
|00001220| 20 61 6e 79 20 6b 69 6e | 64 20 6f 66 20 65 76 65 | any kin|d of eve|
|00001230| 6e 74 2e 0a 49 6e 20 74 | 68 69 73 20 65 6d 75 6c |nt..In t|his emul|
|00001240| 61 74 69 6f 6e 2c 20 69 | 74 20 72 65 74 75 72 6e |ation, i|t return|
|00001250| 73 20 6e 69 6c 20 66 6f | 72 20 6e 6f 6e 2d 6d 6f |s nil fo|r non-mo|
|00001260| 75 73 65 2d 72 65 6c 61 | 74 65 64 20 65 76 65 6e |use-rela|ted even|
|00001270| 74 73 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |ts...(de|falias '|
|00001280| 65 76 65 6e 74 2d 74 69 | 6d 65 73 74 61 6d 70 20 |event-ti|mestamp |
|00001290| 23 5b 28 65 76 65 6e 74 | 29 20 22 08 3c 85 1b 00 |#[(event|) ".<...|
|000012a0| 08 18 c1 08 38 3a 83 12 | 00 c1 82 13 00 c2 08 38 |....8:..|.......8|
|000012b0| 29 1b c4 0b 38 29 87 22 | 20 5b 65 76 65 6e 74 20 |)...8)."| [event |
|000012c0| 32 20 31 20 70 6f 73 69 | 74 69 6f 6e 20 33 5d 20 |2 1 posi|tion 3] |
|000012d0| 32 20 28 23 24 20 2e 20 | 34 35 36 31 29 5d 29 0a |2 (#$ . |4561)]).|
|000012e0| 23 40 35 33 35 20 52 65 | 74 75 72 6e 73 20 74 68 |#@535 Re|turns th|
|000012f0| 65 20 63 6c 6f 73 65 73 | 74 20 41 53 43 49 49 20 |e closes|t ASCII |
|00001300| 61 70 70 72 6f 78 69 6d | 61 74 69 6f 6e 20 74 6f |approxim|ation to|
|00001310| 20 74 68 65 20 67 69 76 | 65 6e 20 65 76 65 6e 74 | the giv|en event|
|00001320| 20 6f 62 6a 65 63 74 2e | 0a 49 66 20 74 68 65 20 | object.|.If the |
|00001330| 65 76 65 6e 74 20 69 73 | 6e 27 74 20 61 20 6b 65 |event is|n't a ke|
|00001340| 79 70 72 65 73 73 2c 20 | 74 68 69 73 20 72 65 74 |ypress, |this ret|
|00001350| 75 72 6e 73 20 6e 69 6c | 2e 0a 49 66 20 74 68 65 |urns nil|..If the|
|00001360| 20 73 65 63 6f 6e 64 20 | 61 72 67 75 6d 65 6e 74 | second |argument|
|00001370| 20 69 73 20 6e 6f 6e 2d | 6e 69 6c 2c 20 74 68 65 | is non-|nil, the|
|00001380| 6e 20 74 68 69 73 20 69 | 73 20 6c 65 6e 69 65 6e |n this i|s lenien|
|00001390| 74 20 69 6e 20 69 74 73 | 20 0a 74 72 61 6e 73 6c |t in its| .transl|
|000013a0| 61 74 69 6f 6e 3b 20 69 | 74 20 77 69 6c 6c 20 69 |ation; i|t will i|
|000013b0| 67 6e 6f 72 65 20 6d 6f | 64 69 66 69 65 72 20 6b |gnore mo|difier k|
|000013c0| 65 79 73 20 6f 74 68 65 | 72 20 74 68 61 6e 20 63 |eys othe|r than c|
|000013d0| 6f 6e 74 72 6f 6c 20 61 | 6e 64 20 6d 65 74 61 2c |ontrol a|nd meta,|
|000013e0| 0a 61 6e 64 20 77 69 6c | 6c 20 69 67 6e 6f 72 65 |.and wil|l ignore|
|000013f0| 20 74 68 65 20 73 68 69 | 66 74 20 6d 6f 64 69 66 | the shi|ft modif|
|00001400| 69 65 72 20 6f 6e 20 74 | 68 6f 73 65 20 63 68 61 |ier on t|hose cha|
|00001410| 72 61 63 74 65 72 73 20 | 77 68 69 63 68 20 68 61 |racters |which ha|
|00001420| 76 65 20 6e 6f 20 0a 73 | 68 69 66 74 65 64 20 41 |ve no .s|hifted A|
|00001430| 53 43 49 49 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |SCII equ|ivalent |
|00001440| 28 43 6f 6e 74 72 6f 6c | 2d 53 68 69 66 74 2d 41 |(Control|-Shift-A|
|00001450| 20 66 6f 72 20 65 78 61 | 6d 70 6c 65 2c 20 77 69 | for exa|mple, wi|
|00001460| 6c 6c 20 62 65 20 6d 61 | 70 70 65 64 20 74 6f 20 |ll be ma|pped to |
|00001470| 0a 74 68 65 20 73 61 6d | 65 20 41 53 43 49 49 20 |.the sam|e ASCII |
|00001480| 63 6f 64 65 20 61 73 20 | 43 6f 6e 74 72 6f 6c 2d |code as |Control-|
|00001490| 41 2e 29 20 20 49 66 20 | 74 68 65 20 73 65 63 6f |A.) If |the seco|
|000014a0| 6e 64 20 61 72 67 20 69 | 73 20 6e 69 6c 2c 20 74 |nd arg i|s nil, t|
|000014b0| 68 65 6e 20 6e 69 6c 20 | 0a 77 69 6c 6c 20 62 65 |hen nil |.will be|
|000014c0| 20 72 65 74 75 72 6e 65 | 64 20 66 6f 72 20 65 76 | returne|d for ev|
|000014d0| 65 6e 74 73 20 77 68 69 | 63 68 20 68 61 76 65 20 |ents whi|ch have |
|000014e0| 6e 6f 20 64 69 72 65 63 | 74 20 41 53 43 49 49 20 |no direc|t ASCII |
|000014f0| 65 71 75 69 76 61 6c 65 | 6e 74 2e 1f 0a 28 64 65 |equivale|nt...(de|
|00001500| 66 61 6c 69 61 73 20 27 | 65 76 65 6e 74 2d 74 6f |falias '|event-to|
|00001510| 2d 63 68 61 72 61 63 74 | 65 72 20 23 5b 28 65 76 |-charact|er #[(ev|
|00001520| 65 6e 74 20 26 6f 70 74 | 69 6f 6e 61 6c 20 6c 65 |ent &opt|ional le|
|00001530| 6e 69 65 6e 74 29 20 22 | 08 39 83 0e 00 09 85 14 |nient) "|.9......|
|00001540| 00 08 c2 9e 41 87 08 a8 | 85 14 00 08 87 22 20 5b |....A...|....." [|
|00001550| 65 76 65 6e 74 20 6c 65 | 6e 69 65 6e 74 20 28 28 |event le|nient ((|
|00001560| 62 61 63 6b 73 70 61 63 | 65 20 2e 20 38 29 20 28 |backspac|e . 8) (|
|00001570| 64 65 6c 65 74 65 20 2e | 20 31 32 37 29 20 28 74 |delete .| 127) (t|
|00001580| 61 62 20 2e 20 39 29 20 | 28 72 65 74 75 72 6e 20 |ab . 9) |(return |
|00001590| 2e 20 31 30 29 20 28 65 | 6e 74 65 72 20 2e 20 31 |. 10) (e|nter . 1|
|000015a0| 30 29 29 5d 20 32 20 28 | 23 24 20 2e 20 34 38 33 |0))] 2 (|#$ . 483|
|000015b0| 38 29 5d 29 0a 23 40 36 | 31 20 52 65 74 75 72 6e |8)]).#@6|1 Return|
|000015c0| 73 20 74 68 65 20 77 69 | 6e 64 6f 77 20 6f 66 20 |s the wi|ndow of |
|000015d0| 74 68 65 20 67 69 76 65 | 6e 20 6d 6f 75 73 65 2d |the give|n mouse-|
|000015e0| 72 65 6c 61 74 65 64 20 | 65 76 65 6e 74 20 6f 62 |related |event ob|
|000015f0| 6a 65 63 74 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |ject...(|defalias|
|00001600| 20 27 65 76 65 6e 74 2d | 77 69 6e 64 6f 77 20 23 | 'event-|window #|
|00001610| 5b 28 65 76 65 6e 74 29 | 20 22 08 18 c1 08 38 3a |[(event)| "....8:|
|00001620| 83 0d 00 c1 82 0e 00 c2 | 08 38 29 89 1b 40 29 87 |........|.8)..@).|
|00001630| 22 20 5b 65 76 65 6e 74 | 20 32 20 31 20 70 6f 73 |" [event| 2 1 pos|
|00001640| 69 74 69 6f 6e 5d 20 33 | 20 28 23 24 20 2e 20 35 |ition] 3| (#$ . 5|
|00001650| 35 36 32 29 5d 29 0a 23 | 40 37 32 20 52 65 74 75 |562)]).#|@72 Retu|
|00001660| 72 6e 73 20 74 68 65 20 | 58 20 70 6f 73 69 74 69 |rns the |X positi|
|00001670| 6f 6e 20 69 6e 20 63 68 | 61 72 61 63 74 65 72 73 |on in ch|aracters|
|00001680| 20 6f 66 20 74 68 65 20 | 67 69 76 65 6e 20 6d 6f | of the |given mo|
|00001690| 75 73 65 2d 72 65 6c 61 | 74 65 64 20 65 76 65 6e |use-rela|ted even|
|000016a0| 74 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 65 |t...(def|alias 'e|
|000016b0| 76 65 6e 74 2d 78 20 23 | 5b 28 65 76 65 6e 74 29 |vent-x #|[(event)|
|000016c0| 20 22 c0 09 19 c2 09 38 | 3a 83 0e 00 c2 82 0f 00 | ".....8|:.......|
|000016d0| c3 09 38 29 21 40 c4 c5 | c6 09 21 21 21 a5 87 22 |..8)!@..|..!!!.."|
|000016e0| 20 5b 70 6f 73 6e 2d 63 | 6f 6c 2d 72 6f 77 20 65 | [posn-c|ol-row e|
|000016f0| 76 65 6e 74 20 32 20 31 | 20 66 72 61 6d 65 2d 63 |vent 2 1| frame-c|
|00001700| 68 61 72 2d 77 69 64 74 | 68 20 77 69 6e 64 6f 77 |har-widt|h window|
|00001710| 2d 66 72 61 6d 65 20 65 | 76 65 6e 74 2d 77 69 6e |-frame e|vent-win|
|00001720| 64 6f 77 5d 20 35 20 28 | 23 24 20 2e 20 35 37 32 |dow] 5 (|#$ . 572|
|00001730| 34 29 5d 29 0a 23 40 36 | 38 20 52 65 74 75 72 6e |4)]).#@6|8 Return|
|00001740| 73 20 74 68 65 20 58 20 | 70 6f 73 69 74 69 6f 6e |s the X |position|
|00001750| 20 69 6e 20 70 69 78 65 | 6c 73 20 6f 66 20 74 68 | in pixe|ls of th|
|00001760| 65 20 67 69 76 65 6e 20 | 6d 6f 75 73 65 2d 72 65 |e given |mouse-re|
|00001770| 6c 61 74 65 64 20 65 76 | 65 6e 74 2e 1f 0a 28 64 |lated ev|ent...(d|
|00001780| 65 66 61 6c 69 61 73 20 | 27 65 76 65 6e 74 2d 78 |efalias |'event-x|
|00001790| 2d 70 69 78 65 6c 20 23 | 5b 28 65 76 65 6e 74 29 |-pixel #|[(event)|
|000017a0| 20 22 c0 09 19 c2 09 38 | 3a 83 0e 00 c2 82 0f 00 | ".....8|:.......|
|000017b0| c3 09 38 29 21 40 87 22 | 20 5b 70 6f 73 6e 2d 63 |..8)!@."| [posn-c|
|000017c0| 6f 6c 2d 72 6f 77 20 65 | 76 65 6e 74 20 32 20 31 |ol-row e|vent 2 1|
|000017d0| 5d 20 33 20 28 23 24 20 | 2e 20 35 39 34 36 29 5d |] 3 (#$ |. 5946)]|
|000017e0| 29 0a 23 40 37 32 20 52 | 65 74 75 72 6e 73 20 74 |).#@72 R|eturns t|
|000017f0| 68 65 20 59 20 70 6f 73 | 69 74 69 6f 6e 20 69 6e |he Y pos|ition in|
|00001800| 20 63 68 61 72 61 63 74 | 65 72 73 20 6f 66 20 74 | charact|ers of t|
|00001810| 68 65 20 67 69 76 65 6e | 20 6d 6f 75 73 65 2d 72 |he given| mouse-r|
|00001820| 65 6c 61 74 65 64 20 65 | 76 65 6e 74 2e 1f 0a 28 |elated e|vent...(|
|00001830| 64 65 66 61 6c 69 61 73 | 20 27 65 76 65 6e 74 2d |defalias| 'event-|
|00001840| 79 20 23 5b 28 65 76 65 | 6e 74 29 20 22 c0 09 19 |y #[(eve|nt) "...|
|00001850| c2 09 38 3a 83 0e 00 c2 | 82 0f 00 c3 09 38 29 21 |..8:....|.....8)!|
|00001860| 41 c4 c5 c6 09 21 21 21 | a5 87 22 20 5b 70 6f 73 |A....!!!|.." [pos|
|00001870| 6e 2d 63 6f 6c 2d 72 6f | 77 20 65 76 65 6e 74 20 |n-col-ro|w event |
|00001880| 32 20 31 20 66 72 61 6d | 65 2d 63 68 61 72 2d 68 |2 1 fram|e-char-h|
|00001890| 65 69 67 68 74 20 77 69 | 6e 64 6f 77 2d 66 72 61 |eight wi|ndow-fra|
|000018a0| 6d 65 20 65 76 65 6e 74 | 2d 77 69 6e 64 6f 77 5d |me event|-window]|
|000018b0| 20 35 20 28 23 24 20 2e | 20 36 31 31 39 29 5d 29 | 5 (#$ .| 6119)])|
|000018c0| 0a 23 40 36 38 20 52 65 | 74 75 72 6e 73 20 74 68 |.#@68 Re|turns th|
|000018d0| 65 20 59 20 70 6f 73 69 | 74 69 6f 6e 20 69 6e 20 |e Y posi|tion in |
|000018e0| 70 69 78 65 6c 73 20 6f | 66 20 74 68 65 20 67 69 |pixels o|f the gi|
|000018f0| 76 65 6e 20 6d 6f 75 73 | 65 2d 72 65 6c 61 74 65 |ven mous|e-relate|
|00001900| 64 20 65 76 65 6e 74 2e | 1f 0a 28 64 65 66 61 6c |d event.|..(defal|
|00001910| 69 61 73 20 27 65 76 65 | 6e 74 2d 79 2d 70 69 78 |ias 'eve|nt-y-pix|
|00001920| 65 6c 20 23 5b 28 65 76 | 65 6e 74 29 20 22 c0 09 |el #[(ev|ent) "..|
|00001930| 19 c2 09 38 3a 83 0e 00 | c2 82 0f 00 c3 09 38 29 |...8:...|......8)|
|00001940| 21 41 87 22 20 5b 70 6f | 73 6e 2d 63 6f 6c 2d 72 |!A." [po|sn-col-r|
|00001950| 6f 77 20 65 76 65 6e 74 | 20 32 20 31 5d 20 33 20 |ow event| 2 1] 3 |
|00001960| 28 23 24 20 2e 20 36 33 | 34 32 29 5d 29 0a 23 40 |(#$ . 63|42)]).#@|
|00001970| 35 30 20 54 72 75 65 20 | 69 66 20 74 68 65 20 61 |50 True |if the a|
|00001980| 72 67 75 6d 65 6e 74 20 | 69 73 20 61 20 6b 65 79 |rgument |is a key|
|00001990| 62 6f 61 72 64 20 65 76 | 65 6e 74 20 6f 62 6a 65 |board ev|ent obje|
|000019a0| 63 74 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |ct...(de|falias '|
|000019b0| 6b 65 79 2d 70 72 65 73 | 73 2d 65 76 65 6e 74 2d |key-pres|s-event-|
|000019c0| 70 20 23 5b 28 6f 62 6a | 29 20 22 08 a8 86 0d 00 |p #[(obj|) ".....|
|000019d0| 08 39 85 0d 00 08 c1 4e | 87 22 20 5b 6f 62 6a 20 |.9.....N|." [obj |
|000019e0| 65 76 65 6e 74 2d 73 79 | 6d 62 6f 6c 2d 65 6c 65 |event-sy|mbol-ele|
|000019f0| 6d 65 6e 74 73 5d 20 32 | 20 28 23 24 20 2e 20 36 |ments] 2| (#$ . 6|
|00001a00| 35 31 35 29 5d 29 0a 23 | 40 34 36 20 54 72 75 65 |515)]).#|@46 True|
|00001a10| 20 69 66 20 74 68 65 20 | 61 72 67 75 6d 65 6e 74 | if the |argument|
|00001a20| 20 69 73 20 61 20 6d 65 | 6e 75 20 65 76 65 6e 74 | is a me|nu event|
|00001a30| 20 6f 62 6a 65 63 74 2e | 1f 0a 28 64 65 66 61 6c | object.|..(defal|
|00001a40| 69 61 73 20 27 6d 65 6e | 75 2d 65 76 65 6e 74 2d |ias 'men|u-event-|
|00001a50| 70 20 23 5b 28 6f 62 6a | 29 20 22 08 a2 c1 3d 87 |p #[(obj|) "...=.|
|00001a60| 22 20 5b 6f 62 6a 20 6d | 65 6e 75 5d 20 32 20 28 |" [obj m|enu] 2 (|
|00001a70| 23 24 20 2e 20 36 36 36 | 38 29 5d 29 0a 23 40 35 |#$ . 666|8)]).#@5|
|00001a80| 34 20 54 72 75 65 20 69 | 66 20 74 68 65 20 61 72 |4 True i|f the ar|
|00001a90| 67 75 6d 65 6e 74 20 69 | 73 20 61 20 6d 6f 75 73 |gument i|s a mous|
|00001aa0| 65 2d 6d 6f 74 69 6f 6e | 20 65 76 65 6e 74 20 6f |e-motion| event o|
|00001ab0| 62 6a 65 63 74 2e 1f 0a | 28 64 65 66 61 6c 69 61 |bject...|(defalia|
|00001ac0| 73 20 27 6d 6f 74 69 6f | 6e 2d 65 76 65 6e 74 2d |s 'motio|n-event-|
|00001ad0| 70 20 23 5b 28 6f 62 6a | 29 20 22 08 a2 c1 3d 87 |p #[(obj|) "...=.|
|00001ae0| 22 20 5b 6f 62 6a 20 6d | 6f 75 73 65 2d 6d 6f 76 |" [obj m|ouse-mov|
|00001af0| 65 6d 65 6e 74 5d 20 32 | 20 28 23 24 20 2e 20 36 |ement] 2| (#$ . 6|
|00001b00| 37 38 36 29 5d 29 0a 23 | 40 32 32 35 20 52 65 74 |786)]).#|@225 Ret|
|00001b10| 75 72 6e 20 74 68 65 20 | 6e 65 78 74 20 6b 65 79 |urn the |next key|
|00001b20| 62 6f 61 72 64 20 6f 72 | 20 6d 6f 75 73 65 20 65 |board or| mouse e|
|00001b30| 76 65 6e 74 3b 20 65 78 | 65 63 75 74 65 20 6f 74 |vent; ex|ecute ot|
|00001b40| 68 65 72 20 65 76 65 6e | 74 73 2e 0a 54 68 69 73 |her even|ts..This|
|00001b50| 20 69 73 20 73 69 6d 69 | 6c 61 72 20 74 6f 20 74 | is simi|lar to t|
|00001b60| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 60 6e 65 78 |he funct|ion `nex|
|00001b70| 74 2d 63 6f 6d 6d 61 6e | 64 2d 65 76 65 6e 74 27 |t-comman|d-event'|
|00001b80| 20 6f 66 20 4c 75 63 69 | 64 20 45 6d 61 63 73 2c | of Luci|d Emacs,|
|00001b90| 0a 62 75 74 20 64 69 66 | 66 65 72 65 6e 74 20 69 |.but dif|ferent i|
|00001ba0| 6e 20 74 68 61 74 20 69 | 74 20 72 65 74 75 72 6e |n that i|t return|
|00001bb0| 73 20 74 68 65 20 65 76 | 65 6e 74 20 72 61 74 68 |s the ev|ent rath|
|00001bc0| 65 72 20 74 68 61 6e 20 | 66 69 6c 6c 69 6e 67 20 |er than |filling |
|00001bd0| 69 6e 0a 61 6e 20 65 78 | 69 73 74 69 6e 67 20 65 |in.an ex|isting e|
|00001be0| 76 65 6e 74 20 6f 62 6a | 65 63 74 2e 1f 0a 28 64 |vent obj|ect...(d|
|00001bf0| 65 66 61 6c 69 61 73 20 | 27 72 65 61 64 2d 63 6f |efalias |'read-co|
|00001c00| 6d 6d 61 6e 64 2d 65 76 | 65 6e 74 20 23 5b 6e 69 |mmand-ev|ent #[ni|
|00001c10| 6c 20 22 c0 19 c2 20 11 | c3 09 21 84 43 00 c4 09 |l "... .|..!.C...|
|00001c20| 21 84 43 00 c5 09 21 84 | 43 00 c6 09 21 84 43 00 |!.C...!.|C...!.C.|
|00001c30| 09 a2 89 1e 07 c8 3d 83 | 32 00 09 41 40 c9 09 38 |......=.|2..A@..8|
|00001c40| 21 88 82 3f 00 0e 07 ca | 3d 83 3f 00 cb 09 41 40 |!..?....|=.?...A@|
|00001c50| 21 88 29 82 02 00 09 29 | 87 22 20 5b 6e 69 6c 20 |!.)....)|." [nil |
|00001c60| 65 76 65 6e 74 20 72 65 | 61 64 2d 65 76 65 6e 74 |event re|ad-event|
|00001c70| 20 6b 65 79 2d 70 72 65 | 73 73 2d 65 76 65 6e 74 | key-pre|ss-event|
|00001c80| 2d 70 20 62 75 74 74 6f | 6e 2d 70 72 65 73 73 2d |-p butto|n-press-|
|00001c90| 65 76 65 6e 74 2d 70 20 | 62 75 74 74 6f 6e 2d 72 |event-p |button-r|
|00001ca0| 65 6c 65 61 73 65 2d 65 | 76 65 6e 74 2d 70 20 6d |elease-e|vent-p m|
|00001cb0| 65 6e 75 2d 65 76 65 6e | 74 2d 70 20 74 79 70 65 |enu-even|t-p type|
|00001cc0| 20 65 76 61 6c 20 32 20 | 73 77 69 74 63 68 2d 66 | eval 2 |switch-f|
|00001cd0| 72 61 6d 65 20 73 65 6c | 65 63 74 2d 66 72 61 6d |rame sel|ect-fram|
|00001ce0| 65 5d 20 34 20 28 23 24 | 20 2e 20 36 39 32 35 29 |e] 4 (#$| . 6925)|
|00001cf0| 5d 29 0a 23 40 31 32 30 | 20 54 72 75 65 20 69 66 |]).#@120| True if|
|00001d00| 20 74 68 65 20 61 72 67 | 75 6d 65 6e 74 20 69 73 | the arg|ument is|
|00001d10| 20 61 20 70 72 6f 63 65 | 73 73 2d 6f 75 74 70 75 | a proce|ss-outpu|
|00001d20| 74 20 65 76 65 6e 74 20 | 6f 62 6a 65 63 74 2e 0a |t event |object..|
|00001d30| 47 4e 55 20 45 6d 61 63 | 73 20 31 39 20 64 6f 65 |GNU Emac|s 19 doe|
|00001d40| 73 20 6e 6f 74 20 63 75 | 72 72 65 6e 74 6c 79 20 |s not cu|rrently |
|00001d50| 67 65 6e 65 72 61 74 65 | 20 70 72 6f 63 65 73 73 |generate| process|
|00001d60| 2d 6f 75 74 70 75 74 20 | 65 76 65 6e 74 73 2e 1f |-output |events..|
|00001d70| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 70 72 6f 63 |.(defali|as 'proc|
|00001d80| 65 73 73 2d 65 76 65 6e | 74 2d 70 20 23 5b 28 6f |ess-even|t-p #[(o|
|00001d90| 62 6a 29 20 22 08 a2 c1 | 3d 87 22 20 5b 6f 62 6a |bj) "...|=." [obj|
|00001da0| 20 70 72 6f 63 65 73 73 | 5d 20 32 20 28 23 24 20 | process|] 2 (#$ |
|00001db0| 2e 20 37 34 31 37 29 5d | 29 0a |. 7417)]|). |
+--------+-------------------------+-------------------------+--------+--------+